//============================================================================================
//Function : void CalculateTkData(unsigned char uctkcount);
//used to calculate the TOUCH KEY data,the result is save in g_a_iTkOutputArray
//input : uctkcount = ALL USED TOUCH KEY CHANNEL COUNT
//used RAM : 
//	g_a_iTkRawDataArray[];		((TKCOUNT+1) * 2)bytes: used to save TOUCH KEY RAW data
//	g_a_iTkBaselineArray[];		((TKCOUNT+1) * 2)bytes: used to save TOUCH KEY BASELINE data
//	g_bRawDataInvalidFlag;	(1bit): if this bit is 1 means NOISE is detected,all TOUCH KEY output will be clear
//	g_aa_cTkCalcArray[];			(TKCOUNT * 5)bytes: used to calculate the TOUCH KEY data to check if the KEY is pressed or not
//	g_ucTkArrayIndex;			(1 byte): used to switch the calculate buffer
//	g_a_iTkOutputArray[];		(TKCOUNT * 2)bytes]: used to save calculate result,the result will be saved in the first half of this array
//	ALL ARRAY's INDEX is same to the TkChannelTable's TOUCH KEY INDEX
//============================================================================================
#ifndef _TKCALCULATE_H_
#define _TKCALCULATE_H_

void CalculateTkData(unsigned char uctkcount);

#endif